package com.gxa.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.gxa.entity.Build;
import com.gxa.entity.Community;
import com.gxa.entity.Owner;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@NoArgsConstructor
@AllArgsConstructor
@Data
public class HouseDto {
    private Integer hid; // 主键
    private String propertyId; // 房产编号
    private Integer houseNum; // 房间号
    private Integer count; // 房间个数
    @JSONField(format="yyyy-MM-dd")
    private Date liveTime; // 入住时间
    private String cid; // 小区ID
    private String cname; // 小区name
    private String bid;  // 栋数id
    private String unit; // 单元
    private String bname;  // 栋数id
    private String oid; // 业主id
    private String oname; // 业主name



    public HouseDto(Integer hid, String cname, String oname) {
        this.hid = hid;
        this.cname = cname;
        this.oname = oname;
    }

    public HouseDto(String propertyId, Integer houseNum, Integer count, Date liveTime, String cid, String cname, String bid, String bname, String oid, String oname) {
        this.propertyId = propertyId;
        this.houseNum = houseNum;
        this.count = count;
        this.liveTime = liveTime;
        this.cid = cid;
        this.cname = cname;
        this.bid = bid;
        this.bname = bname;
        this.oid = oid;
        this.oname = oname;
    }
}
